package com.matrix.framework.auth.repositories;

import com.matrix.framework.auth.data.LoginFailRecordPo;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import reactor.core.publisher.Mono;

/**
 * 登录失败记录Repository接口
 *
 * Copyright © 海平面工作室 版权所有
 *
 * @Author: Leo
 * @Create: 2024/10/3 11:15
 * @Since 1.0
 */
public interface LoginFailRecordRepository extends ReactiveCrudRepository<LoginFailRecordPo, Long> {

    /**
     * 根据用户名查找失败记录
     */
    Mono<LoginFailRecordPo> findByUsername(String username);

    /**
     * 根据用户名删除失败记录
     */
    Mono<Void> deleteByUsername(String username);
} 